<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${dictDO.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">轮播图名称：</label>
                            <div class="col-sm-9">
                                <input id="name" name="name" th:value="${dictDO.name}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">轮播图位置：</label>
                            <div class="col-sm-9">
                                <select id="type" name="type" class="form-control">
                                    <option value="kw_index_img" th:selected="${dictDO.type== 'kw_index_img'}">科务轮播图
                                    </option>
                                    <option value="dw_index_img" th:selected="${dictDO.type== 'dw_index_img'}">党务轮播图
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">轮播图排序：</label>
                            <div class="col-sm-9">
                                <input id="sort" name="sort" th:value="${dictDO.sort}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">图片：</label>
                            <div class="row">
                                <div class="col-sm-8" id="logImg">
                                    <input type="hidden" name="value" th:value="${dictDO.value}"/>
                                    <div class="col-sm-3 col-md-3 resourceImg">
                                        <div class="thumbnail">
                                            <img class="imgUrl" data-toggle="tooltip" imgName="" title="点击预览大图"
                                                 th:src="${dictDO.value}">
                                        </div>
                                    </div>
                                    <button type="button" class="layui-btn uploadImg">
                                        <i class="fa fa-cloud"></i>上传
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/invest/sysDict/edit.js" th:src="@{/js/appjs/invest/sysDict/edit.js}">
</script>
<script type="text/javascript" th:src="@{/js/upload.js}"></script>
</body>
</html>
